Controlling a voltage controlled oscillator in a bang-bang phase locked loop

ABSTRACT

The frequency changes in a bang-bang PLL that are generated using a digital phase detector&#39;s up/down signal are initially set to produce a faster pull-in rate and then reduced to produce a slower pull-in rate. The faster pull-in involves relatively large frequency changes and the slower pull-in rate involves smaller frequency changes. The changes in frequency of a bang-bang PLL can be implemented using a step size controller that includes timing control logic and step size logic. The function of the timing control logic is to control the timing of step size changes. The function of the step size logic is to set the step size of the frequency changes that are made by the VCO in response to the pd_up/down signal that is delivered directly to the VCO from the digital phase detector.

FIELD OF THE INVENTION

The invention relates to phase-locked loops, and more particularly, tocontrolling the voltage controlled oscillator in a bang-bangphase-locked loop.

BACKGROUND OF THE INVENTION

Clock and data recovery (CDR) circuits are widely used when a datasignal is sent across a communications link without an accompanyingdedicated clock signal. CDR circuits typically use a phase-locked loop(PLL) to determine, from the transitions between physical data values,the exact frequency at which data is arriving and the optimum phase atwhich to sample the incoming data. PLLs typically include a VCO, afrequency detector, and a phase detector. The phase detector is used todetermine the optimum phase at which to sample the incoming data. Phasedetectors require that the frequency of a VCO be very close to thefrequency of the incoming signal before frequency and phase lock can beachieved. For example, the frequencies of the VCO and incoming signalshould be within 0.5% of each other before the phase detector is able to“pull-in” the VCO frequency to match the incoming signal. Frequencydetectors are designed to bring the frequency of the VCO to within thepull-in range, or deadband region, of the phase detector. Frequencydetectors relinquish control of the VCO signal to the phase detectoronce the VCO frequency has been brought into the deadband region.

PLLs often use “bang-bang” type phase detectors. Bang-bang phasedetectors, also referred to as “binary” or “up/down” phase detectors,output an indication of the phase of the incoming signal relative to theVCO signal using an up or down (up/down) signal. The up/down signal hasno information on how far the phase of the VCO signal differs from theincoming signal. The pull-in range of a bang-bang phase detector isproportional to the size of the immediate change in VCO frequency thatresults from an up or down signal. The immediate change in VCO frequencythat results from an up/down signal is generally referred to as the“bang-bang step size” or simply the “step size.” PLLs that utilizebang-bang phase detectors are often referred to as bang-bang PLLs.

One problem with PLLs, including bang-bang PLLs, is frequency detectorovershoot. Frequency detector overshoot occurs when the frequencydetector causes the VCO frequency to oscillate around the deadbandregion without being able to drive the VCO frequency into the deadbandregion. This can happen if the deadband region is too narrow. Anothercommon problem with PLLs is charge pump leakage. Charge pump leakage canmake the phase detector's pull-in range asymmetrical and can prevent thePLL from locking if the deadband region is approached from the wrongside. A narrower deadband region can remedy this problem, but this maylead to frequency detector overshoot.

Although current bang-bang PLLs work well, there is still a need forbang-bang PLLs that are less susceptible to overshoot and charge pumpleakage.

SUMMARY OF THE INVENTION

In accordance with the invention, the frequency changes in a bang-bangPLL that are generated using a digital phase detector's up/down signalare initially set to produce a faster pull-in rate and are then reducedto produce a smaller pull-in rate. The faster pull-in involvesrelatively large frequency changes, which allow for a wider deadbandregion and reduce the negative effects of charge pump leakage. Theslower pull-in rate involves smaller frequency changes that enable finecontrol of the PLL in a regular operating state. The fine control allowsthe PLL to achieve precise frequency and phase lock.

The changes in frequency of a bang-bang PLL can be implemented using astep size controller that includes timing control logic and step sizelogic. The function of the timing control logic is to control the timingof step size changes. In particular, the timing control logic controlsthe transition of the step size from an initially large step size to alower step size. The timing control logic initiates a change in the stepsize some time after frequency lock is established. The timing controllogic communicates timing control information to the step size logic viaa timing control signal. The step size logic receives the timing controlsignal from the timing control logic and may receive a programmingsignal from a programming input and/or a clock signal from a clocksource. The function of the step size logic is to set the step size ofthe frequency changes that are made by the VCO in response to thepd_up/down signal that is delivered directly to the VCO from the digitalphase detector. The step size logic may be configured to provide onlytwo step sizes, for example, a first step size that is used initiallyand a second smaller step size that is transitioned to after some periodof time. Alternatively, the step size logic may be configured to providemultiple intermediate step sizes that provide a transition from thelargest step size to the smallest step size.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts an embodiment of a bang-bang PLL that includes a stepsize controller in accordance with the invention.

FIG. 2 depicts an example of the logic involved in controlling the stepsize of a VCO in accordance with the invention.

FIG. 3 depicts a VCO and an embodiment of the step size controllerdepicted in FIG. 1.

FIG. 4 depicts exemplary waveforms related to the step size controllerof FIG. 3, where the step size logic provides only two step sizes.

FIG. 5 depicts exemplary waveforms related to the step size controllerof FIG. 3, where the step size logic provides multiple intermediate stepsizes that provide a transition from the largest step size to thesmallest step size.

FIG. 6A depicts details of an embodiment of the timing control logicdepicted in FIG. 3.

FIG. 6B depicts waveforms for an exemplary operation of the timingcontrol logic that is depicted in FIG. 6A.

FIG. 7A depicts details of another embodiment of the timing controllogic depicted in FIG. 3.

FIG. 7B depicts waveforms for an exemplary operation of the timingcontrol logic that is depicted in FIG. 7A.

FIG. 8 depicts details of an embodiment of the step size logic depictedin FIG. 3.

FIG. 9 depicts details of another embodiment of the step size logicdepicted in FIG. 3, which is configured to provide intermediate stepsizes.

FIG. 10 depicts details of another embodiment of the step size logicdepicted in FIG. 3, which is configured to provide intermediate stepsizes.

FIG. 11 depicts details of another embodiment of the step size logicdepicted in FIG. 3, which is configured to allow the programming to bechanged without causing a counter to roll over.

FIG. 12 depicts example waveforms that illustrates changes in a countervalue and a programming input using the step size logic of FIG. 11.

FIG. 13 depicts an embodiment of a PLL that is configured to provide twodifferent step sizes in a PLL that does not provide a direct input tothe VCO from the digital phase detector.

FIG. 14 is a process flow diagram of a method for controlling a VCO in abang-bang PLL.

Throughout the description similar reference numbers are used toidentify similar elements.

DETAILED DESCRIPTION

The task of a PLL is to lock the frequency and phase of a VCO signal toa particular signal, referred to herein as a data input signal(data_in). In PLLs with bang-bang phase detection, the phase detectoradjusts the frequency of the VCO signal using a simple up/down signal.In accordance with the invention, the frequency changes produced usingan up/down signal are initially set to cause a faster pull-in rate andthen reduced to cause a slower pull-in rate. The slower pull-in rate isthen maintained during regular PLL operation.

FIG. 1 depicts an embodiment of a bang-bang PLL 100 that includes avoltage controlled oscillator (VCO) 102, a digital phase detector 104, afrequency detector 106, a multiplexer 108, a charge pump 119, a loopfilter 112, and a step size controller 114. The digital phase detector104 is connected to receive an input signal (data_in) from a signalsource and a portion of the VCO signal (VCO_(in)) from the VCO. Theinput signal carries the data that is to be recovered. As part of thePLL operation, the digital phase detector compares transitions of theinput signal with transitions of the VCO signal and generates an output(referred to herein as the “pd_up/down” signal) that indicates the phasedifference between the input signal and the VCO signal. The digitalphase detector produces an “up” signal when the phase of the inputsignal leads the phase of the VCO signal and a “down” signal when thephase of the input signal lags the phase of the VCO signal. Thepd_up/down signal is provided to the charge pump via the multiplexer anddirectly to the VCO. An up signal drives the frequency of the VCO upwardwhile a down signal drives the frequency of the VCO signal downward,thereby advancing or retarding, respectively, the phase of the VCOsignal. The digital phase detector also outputs the recovered data(data_out). This data is not critical to the invention and is notdescribed further. In an alternative embodiment, the pd_up/down signalis provided directly to the VCO after the pd_up/down signal passesthrough the multiplexer 108.

The frequency detector 106 is connected to receive a portion of the VCOsignal (VCO_(in)) from the VCO 102 and a reference clock signal(ref_clk) from a reference clock source (often external to the systemand not shown here). The frequency detector uses the reference clocksignal to determine whether or not the VCO signal should be controlledby the frequency detector. The frequency detector controls the VCO whenthe frequency of the VCO signal is outside a pre-established deadbandregion that is centered at the setpoint frequency of the VCO. Thefrequency detector generates a control signal (referred to herein as the“fd_en” signal) that indicates whether the VCO is to be controlled bythe frequency detector or the digital phase detector 104 (that is,whether control of the VCO by the frequency detector is enabled ordisabled). When the frequency detector does not control the VCO becausethe frequency of the VCO is within the deadband region, the PLL 100 issaid to be “in frequency lock.” When the frequency detector does controlthe VCO because the frequency of the VCO is outside the deadband region,the PLL is said to be “out of frequency lock.” The frequency detectoralso generates an output (referred to herein as the “fd_up/down” signal)that indicates the sign of the frequency difference between thefrequency of the VCO signal and the setpoint frequency. The frequencydetector produces an “up” signal when the frequency of the VCO is belowthe setpoint frequency of the VCO and a “down” signal when the frequencyof the VCO is above the setpoint frequency. An up signal drives thefrequency of the VCO signal upward while a down signal drives thefrequency downward.

In the embodiment of FIG. 1, when the control signal (fd_en) from thefrequency detector 106 is high, the output (fd_up/down) from thefrequency detector controls the VCO 102. Conversely, when the controlsignal (fd_en) is low, the output (pd_up/down) from the digital phasedetector 104 controls the VCO. The portion of the VCO signal that isreceived at the frequency detector and the digital phase detector may bedivided by N using a signal divider (not shown). In an alternativeembodiment, the function of the frequency detector can be performed by amore general “lock detector,” which determines whether control of theVCO should be given up to the digital phase detector. Instead of basingthe control decision on the frequency difference between the actualfrequency of the VCO and a setpoint frequency (as is the case with thefrequency detector), the lock detector may use other criteria, such asbit errors or consistency of phase, to determine if/when control of theVCO should be given up to the digital phase detector. Even if lockdetection is not based on a frequency measurement, there is still a needfor a frequency detector that generates a signal representing the signof the frequency difference between the VCO signal and a referencesignal.

The multiplexer 108 receives the control signal (fd_en) from thefrequency detector 106 and allows the corresponding control signal(either fd_up/down from the frequency detector or pd_up/down from thedigital phase detector 104) to control the charge pump 1.10. The chargepump receives the corresponding signal (referred to herein simply as the“up/down signal”) from the multiplexer and transfers a positive chargingcurrent to the loop filter 112 if the up/down signal is “up” or anegative charging current if the up/down signal is “down.” The loopfilter generates a VCO tuning signal (referred to in the figures asV_(tune)) in response to an output from the charge pump. In general,when a positive charging current is received from the charge pump, thetuning voltage output from the loop filter is increased, thereby causingthe frequency of the VCO 102 to increase. Conversely, when a negativecharging current is received from the charge pump, the tuning voltageoutput from the loop filter is decreased, thereby causing the frequencyof the VCO to decrease.

The step size controller 114 is connected to receive the control signal(fd_en) from the frequency detector 106 and may receive a programminginput from an optional programming interface 116. The step sizecontroller outputs a step size signal (referred to in the figures as the“step_size” signal) in response to the control signal (fd_en) and theoptional programming input. The step size signal (step_size) sets thestep size of frequency changes that are made in response to the up/downsignal that is provided directly to the VCO 102 from the digital phasedetector 104. The step size controller and step size control techniquesare described in more detail below with regard to FIGS. 2–12.

The VCO 102 includes inputs for receiving the VCO tuning signal(V_(tune)) from the loop filter 112, the pd_up/down signal directly fromthe digital phase detector 104, and the step size signal (step_size)from the step size controller 114. The direct input of the pd_up/downsignal from the digital phase detector produces relatively smalladjustments in the frequency of the VCO that are used for achievingprecise control of the VCO when the PLL is in frequency lock (i.e., whenthe digital phase detector controls the VCO). The step size signal(step_size) sets the step size of frequency and phase changes that aremade in response to the pd_up/down signal that is received directly fromthe digital phase detector. In an alternative embodiment, the VCO mayreceive the pd_up/down signal after the pd_up/down signal passes throughthe multiplexer 108 (at which point the pd_up/down signal is referred tosimply as the up/down signal). The up/down signal can be provideddirectly to the VCO by a signal path that branches off the signal pathbetween the multiplexer 108 and the charge pump 110.

Operation of the bang-bang PLL 100 depicted in FIG. 1 involves tuningthe VCO 102 in response to continuous feedback from the digital phasedetector 104, the frequency detector 106, and the step size controller114. Starting at the VCO for description purposes, the VCO receives theVCO tuning signal (V_(tune)) from the loop filter 112, the step_sizesignal from the step size controller, and the pd_up/down signal directlyfrom the digital phase detector. In response, the VCO outputs a VCOsignal having a particular frequency and phase. A portion of the VCOsignal (VCO_(in)) is fed into the digital phase detector and thefrequency detector. The digital phase detector and the frequencydetector generate output signals (pd_up/down, fd_en, and fd_up/down) asdescribed above in response to the VCO signal (VCO_(in)). When thefrequency of the VCO signal is outside the deadband region (i.e., thePLL is out of frequency lock), the frequency detector controls the VCOthrough the VCO tuning signal (V_(tune)). When the frequency of the VCOis within the deadband region (i.e., the PLL is in frequency lock), thedigital phase detector controls the VCO through a combination of the VCOtuning signal (V_(tune)) and the directly provided pd_up/down signal.The magnitude of the frequency change produced in response to thedirectly provided pd_up/down signal is set by the step size signal(step_size).

In accordance with the invention, the step size signal is initially setto produce relatively large frequency changes once frequency lock isestablished and is subsequently adjusted to produce smaller frequencychanges. The initial period of relatively large frequency changes causesfaster pull-in, allows for a wider deadband region, and reduces thenegative effects of charge pump leakage. Subsequently adjusting the stepsize signal (step_size) to produce smaller frequency changes enablesfine control of the PLL 100 in a regular operating state, which allowsthe PLL to achieve precise frequency and phase lock.

FIG. 2 depicts an example of the logic involved in controlling the stepsize of a VCO. First, it is determined whether the PLL is in frequencylock, decision point 220. If the PLL is not in frequency lock (i.e., thefrequency of the VCO is not within the deadband region), then thefrequency detector controls the VCO, block 222. If the PLL is infrequency lock (i.e., the frequency of the VCO is within the deadbandregion), then the digital phase detector controls the VCO, block 224.Once frequency lock is obtained and the digital phase detector controlsthe VCO, the VCO frequency is changed by a first step size, block 226.Next, it is determined whether the step size should be changed, decisionpoint 228. Examples of how this determination is made are described indetail below with reference to FIGS. 6A and 7A. In an embodiment, thestep size change occurs some time after frequency lock is established(i.e., after the control signal (fd_en) goes low). If the step size isnot to be changed, then the VCO frequency continues to be changed by thefirst step size, block 226. If the step size is to be changed, then thestep size is changed to a second step size, block 230. Examples of howthe step size is changed are described in detail below with reference toFIGS. 8–11. After the step size is changed, the VCO frequency is changedby the second step size, block 232. Next, it is determined whetherfrequency lock is maintained, decision point 234. If frequency lock ismaintained, then the VCO frequency continues to be changed by the secondstep size, block 232. If frequency lock is not maintained (i.e., the PLLfalls out of lock), then the frequency detector takes over control ofthe VCO, block 222.

As stated above, the invention relates to the step size controller 114and step size control techniques that are implemented using the stepsize controller. FIG. 3 depicts a VCO 302 and an embodiment of a stepsize controller 314 that includes timing control logic 336 and step sizelogic 338. The timing control logic receives the control signal (fd_en)from the frequency detector 106 (FIG. 1) and may receive a clock signal(clk) from an internal or external clock source (not shown). Thefunction of the timing control logic is to control the timing of stepsize changes. In particular, the timing control logic controls thetransition of the step size from an initially large step size to asmaller step size. In the embodiment of FIG. 3, the timing control logicinitiates a change in the step size some time after frequency lock isestablished (i.e., after the control signal (fd_en) goes low). Thetiming control logic communicates timing control information to the stepsize logic via a timing control signal (referred to in the figures asthe “pull_in” signal). The delay from when the frequency detector givesup control of the VCO (i.e., after the control signal (fd_en) goes low)to when step size reduction is initiated (i.e., when the control signal(pull_in) goes low) is typically chosen to be at least long enough forthe PLL to pull the VCO frequency to be equal to the frequency of theinput signal. In some applications, the delay is set with enough marginof error that it is not necessary to know the exact time required by thePLL to complete frequency pull-in.

The step size logic 338 receives the timing control signal (pull_in)from the timing control logic 336 and may receive a programming inputfrom the programming interface 116 (FIG. 1) and/or a clock signal (clk)from a clock source (not shown). The function of the step size logic isto set the step size of the frequency changes that are made by the VCO302 in response to the pd_up/down signal that is delivered directly tothe VCO from the digital phase detector 104 (FIG. 7). In the embodimentof FIG. 3, the step sizes are set by the step size signal (step_size).The optional programming input is used to program the step sizes and theoptional clock signal (clk) is used to control the timing of step sizetransitions. The step size signal (step_size) may be an analog ordigital signal depending on the implementation. The step size logic maybe configured to provide only two step sizes, for example, a first stepsize that is used initially and a second smaller step size that istransitioned to after some period of time. Alternatively, the step sizelogic may be configured to provide multiple intermediate step sizes thatprovide a transition from the largest step size to the smallest stepsize.

FIG. 4 depicts exemplary waveforms of the control signal (fd_en) 440,the timing control signal (pull_in) 442, and the step size signal(step_size) 444 generated by the step size controller 314 of FIG. 3, inan example in which the step size logic provides only two step sizes. InFIG. 4, the control signal (fd_en) starts out high indicating that thePLL is out of frequency lock and then changes to low indicating thatfrequency lock has been established. The timing control signal (pull_in)starts out high and then changes to low after some time in response tothe change in the control signal (fd_en). The change in the timingcontrol signal (pull_in) to low in turn causes the step size signal(step_size) to go from a large value to a small value. In general, thedelay between the change in the control signal (fd_en) and the change inthe timing control signal (pull_in) is controlled by the timing controllogic 336 and the change from the large step size to the small step sizeis controlled by the step size logic 338. The large step sizecorresponds to larger frequency changes and enables faster pull-in and awider deadband region. The larger step size is typically used for ashort time immediately after frequency lock is established. The smallerstep size corresponds to smaller frequency changes and enables precisecontrol of the VCO. The smaller step size is typically used duringregular operation. That is, for all operating time except for theinitial period after frequency lock is established or re-established.

FIG. 5 depicts exemplary waveforms of the control signal (fd_en) 540,the timing control signal (pull_in) 542, and the step size signal(step_size) 544 generated by the step size controller 314 of FIG. 3, inan example in which the step size logic provides multiple intermediatestep sizes that provide a transition from the largest step size to thesmallest step size. FIG. 5 is similar to FIG. 4 except that the stepsize signal (step_size) begins a transition from the largest to thesmallest step size once the timing control signal (pull_in) goes low. Itmay be desirable to transition the step size from the largest to thesmallest step size using multiple intermediate step sizes because insome bang-bang PLLs, changing the step size from the large value to thesmall value in a single jump can cause the PLL to lose frequency lock.In particular, the PLL will likely lose frequency lock if the change infrequency that is caused by the change in step size is much larger thanthe difference between the “up” and “down” frequency steps of the VCO inthe regular operation mode. The transition from the largest to thesmallest step size may involve multiple discrete stepped changes (asshown in FIG. 5) or a continuous smooth transition. If the step size istransitioned with gradual intermediate step size changes, there does notneed to be any delay between when frequency lock is obtained and whenthe step size transition begins. The step size transition is regarded asbeing “gradual” when step size reduction does not get ahead of thefrequency pull-in.

The functionality described with reference to FIGS. 1–5 can beimplemented in many different ways. FIG. 6A depicts details of anembodiment of the timing control logic 336 depicted in FIG. 3. Thetiming control logic 636 depicted in FIG. 6A includes two flip-flops(FF) 646 and 647 and an OR gate 648. The logic functions to assert thetiming control signal (pull_in) as long as the PLL is out of frequencylock (i.e., fd_en is high) and for a period of time after frequency lockis established (i.e., fd_en is low). In the implementation, the controlsignal (fd_en) is the data input to the first flip-flop and the clocksignal (clk) is used for clocking both of the flip-flops. The outputsignal (A) from the first flip-flop is the data input to the secondflip-flop. The output signal (D) of the second flip-flop is one of theinputs to the OR gate. In operation, the clock signal (clk) clocks thestate of the control signal (fd_en) into the two flip-flops. Any changesto the control signal (fd_en) show up on signals A and D on successiveedges of the clock signal (clk). The OR gate sets its output (pull_in)high while the control signal (fd_en) is high. The control signal ismaintained high for one or two cycles of the clock signal (clk) afterthe control signal (fd_en) goes low depending on where the transition ofthe control signal (fd_en) occurred. Waveforms that depict an exemplaryoperation of the timing control logic are depicted in FIG. 6B.

While the timing control logic 636 depicted in FIG. 6A assumes that thecontrol signal (fd_en) is high without interruption until the VCOfrequency is within the deadband region, there are implementations offrequency detectors that have control signals that are highintermittently with a variable duty cycle for as long as the VCOfrequency is outside the deadband region. For this type of frequencydetector, the timing control logic of FIG. 6A might not work since anedge of the clock signal (clk) might miss the asynchronous pulses of thecontrol signal (fd_en) and cause the timing control signal (pull_in) toturn off too soon.

FIG. 7A depicts details of another embodiment of the timing controllogic 336 depicted in FIG. 3 that is configured to work in conjunctionwith frequency detectors that are pulsed-on as described above. Thetiming control logic 736 includes a reset (RS) flip-flop 749, aflip-flop 750, an AND gate 751, and an inverter 752. When the controlsignal (fd_en) is high, the output signal (A) of the RS flip-flop ishigh. The rising edges of the clock signal (clk), the period of whichshould be longer than the largest gap between control signal (fd_en)pulses, clock the level on the output signal (A) to the output (pull_in)of the flip-flop 750. The rising edges of the clock signal (clk) alsoreset the RS flip-flop via the pulse generator that is formed by the ANDgate and the inverter.

When the control signal (fd_en) stops pulsing, the RS flip-flop 749 isno longer set between clock edges and the timing control signal(pull_in) drops low after at least one more cycle of the clock signal(clk). This embodiment of the timing control logic 736 will work forboth constant-on and pulsed-on type frequency detectors. Waveforms thatdepict an exemplary operation of the timing control logic are depictedin FIG. 7B.

FIG. 8 depicts details of an embodiment of the step size logic 338depicted in FIG. 3. The step size logic 838 of FIG. 8 includes multipleOR gates 754 that provide outputs to a digital-to-analog converter (DAC)756. The DAC provides an analog step size signal (step_size) as anoutput. Each of the OR gates includes a first input that is used to seta programmable step size and a second input that receives the timingcontrol signal (pull_in). All of the first inputs make up a programminginput 816. In operation, when the timing control signal (pull_in) ishigh, all of the bits that are used to drive the DAC are set to logic 1because of the OR gates. The DAC outputs its maximum (full-scale) analogvalue when all of the bits are set to logic 1. When the timing controlsignal (pull_in) is low, the magnitude of the step size signal is set bythe asserted bits of the programming input.

As described above, it may be desirable to transition the step size fromthe largest to the smallest step size using multiple intermediate stepsizes. FIG. 9 depicts details of another embodiment of the step sizelogic 338 depicted in FIG. 3 that is configured to provide intermediatestep sizes. The embodiment of FIG. 9 is similar to the embodiment ofFIG. 8 except that the step size logic 938 of FIG. 9 includes a low-passfilter 958 that provides the intermediate step sizes. The low-passfilter includes a resistor 960 and a capacitor 962 connected to theoutput of the DAC 956. The low-pass filter time constant is chosen suchthat it prevents the analog step size signal (step_size) from changingfaster than the PLL can track the VCO disturbance. The resistor of thelow pass filter may not need to be implemented as a separate physicalcomponent if the output impedance of the DAC is large enough to make asuitable low-pass filter time constant with the capacitor alone.

FIG. 10 depicts details of another embodiment of the step size logic 338depicted in FIG. 3 that is configured to provide intermediate stepsizes. The step size logic 1038 of FIG. 10 includes a counter 1064, aNOR gate 1066, a comparator 1068, and a DAC 1056. The step size logicreceives a programming input (PI) from a register 1016. In alternativeembodiments, the register may be incorporated into the step size logic.The counter receives the control signal (fd_en), a clock signal (clk),and a counter enable signal (ctr_en). The counter outputs an n-bitcounter value (CV) to the DAC and to the comparator. The comparatorreceives the n-bit counter value (CV) from the counter and an n-bitprogramming input (PI) from the register and outputs an equal signal(eq).

In operation, the voltage or current of the step size signal (step_size)is set by the DAC 1056. The DAC is controlled by the counter value (CV)at the output of the n-bit counter 1064. Whenever the timing controlsignal (pull_in) is high, the counter is preset to its maximum value viathe preset input. For example, asserting the preset input sets each ofthe counter bits high (e.g., logical 1). The counter preset value couldbe any value suitable for the desired PLL pull-in rate, but setting allbits to logic 1 is easily implemented.

When the timing control signal (pull_in) is high, the counter enablesignal (ctr_en) is forced to a logic 0. The counter enable signal(ctr_en) being low prevents the counter 1064 from changing state (e.g.,decrementing if the counter is a down counter or incrementing if thecounter is an up counter) in response to the clock signal (clk) andtherefore the counter keeps outputting its preset value as the countervalue (CV).

The register 1016 contains the n-bit value of the programming input(PI), which represents the value of the step size signal (step_size)that is to be used during regular operation. In a system without theaccelerated pull-in, this register could be connected directly to theDAC 1056.

The comparator 1068 compares the n-bit values (PI and CV) that areoutput from the register 1016 and the counter 1064 and outputs an equalsignal (eq) that is high if the two values are equal. The comparatoroutputs an equal signal (eq) that is low when the two values are notequal.

During pull-in (i.e., while the timing control signal (pull_in) is high,which forces the counter 1064 to its maximum value), the equal signal(eq) will be at logic low. When the timing control signal (pull_in)drops low, the preset function is released, the counter enable signal(ctr_en) goes low, and the counter is allowed to change state (e.g.,decremented). When both the timing control signal (pull_in) and theequal signal (eq) are low, as will generally be the case immediatelyafter the timing, control signal (pull_in) drops low, the NOR gate 1066will output a high counter enable signal (ctr_en). The high counterenable signal (ctr_en) allows the counter to be decremented one countper clock edge until its output value matches the output value from theregister 1016. When the count output from the counter equals theregister value, the equal signal (eq) of the comparator 1068 will gohigh and the NOR gate 1066 will drop the counter enable signal (ctr_en)low. Dropping the counter enable signal (ctr_en) low prevents thecounter from decrementing further and fixes the bit value that isprovided to the DAC 1056 at the register value. As stated above, theregister value is selected to correspond to the regular operatingcondition. Note that this sequence of preset and then count down to theregister value will repeat itself every time the frequency detectorturns on the timing control signal (pull_in) without intervention of anexternal control signal.

After frequency lock is established and during regular operation, theremay be a need to change the value of the programming input (PI) storedin the register 1016. Changing the value of the programming input (PI)to a larger value can cause the PLL to lose frequency lock if thecounter is required to “roll over” to reach the larger value. FIG. 11depicts an embodiment of the step size logic 338 depicted in FIG. 3 thatis configured to allow the programming input (PI) to be changed withoutrequiring the counter to roll over, which would likely push the PLL outof lock. The step size logic 1138 is similar to the step size logic 1038of FIG. 10 except that the counter is able to count up or down (thecounter is referred to herein as an “up/down counter”) in response torespective up or down control signals. The step size logic depicted inFIG. 11 operates similarly to the step size logic depicted in FIG. 10with a few differences. Specifically, the comparator compares thecounter value (CV) with the programming input (PI) and instead ofoutputting an equal signal (eq), which indicates whether the countervalue (CV) and the programming input (PI) are equal, the comparatoroutputs an enable up (en_up) signal (e.g., en_up is high) when thecounter value (CV) is less than the programming input (PI) or an enabledown (en_dn) signal (e.g., en_dn is high) when the counter value (CV) isgreater than the programming input (PI). The result of this logic isthat the counter does not have to roll over to reach a programming input(PI) that is changed after frequency lock is achieved (e.g., trying toreach a programming input (PI) that is adjusted upward with a downcounter).

FIG. 12 depicts example waveforms that illustrate how the counter value(CV) changes with changes in the programming input (PI) in the casewhere the programming input is increased (e.g., PV2>PV1) and in the casewhere the programming input (PI) is decreased (e.g., PV3<PV2) using thestep size logic depicted in FIG. 11. Whether the programming input (PI)is adjusted upward or downward, the counter value (CV) changes to theprogramming value (PI) without rolling over in either direction.

Typically, the pd_up/down and step size signals are continuously 25,provided to the VCO and are always influencing the VCO to some degree.However, when the VCO is being controlled by the frequency detector(e.g., when fd_en is high), the influence on the frequency of the VCO isinsignificant compared to the influence of the VCO tuning signal(V_(tune)). That is, the magnitude of the changes in frequency caused bythe direct input of the pd_up/down signal and the step size signal(step_size) are so small compared to the changes caused by the VCOtuning signal (V_(tune)) that they have no practical effect on the VCOfrequency when the VCO is out of lock.

Because the influence of the directly input pd_up/down signal isinsignificant compared to the influence of the VCO tuning signal(V_(tune)) when the VCO is out of lock, the step size signal can be“preset” at the desired high level before frequency lock is established.Once frequency lock is established and the frequency detectorrelinquishes control to the digital phase detector and the desired stepsize is already set.

A bang-bang PLL can be controlled to have two different step sizes eventhough its VCO does not receive a direct input from the digital phasedetector (e.g., the pd_up/down signal). FIG. 13 depicts an embodiment ofa bang-bang PLL 1300 that is configured to provide two different stepsizes when the VCO 1302 does not receive a direct input from the digitalphase detector 1304. Similar to the systems described above withreference to FIGS. 1 and 3, the system of FIG. 13 includes a step sizecontroller 1314 that controls the step size of the VCO once the VCOestablishes lock (i.e., when the digital phase detector controls the VCOand fd_en is low). The step size controller includes timing controllogic 1336 and step size logic 1338. The timing control logic is similarto the timing control logic described above with reference to FIGS. 3,6A, and 7A. The timing control logic outputs a timing control signal(pull_in) to the step size logic. The step size logic includes a switch1372 and a resistor 1374 that are in series with the resistor 1376 andthe capacitor 1378 that make up the loop filter of the PLL. Inoperation, the step size logic 1338 determines the size of the ripple(i.e., instantaneous changes) on the VCO tuning signal (V_(tune)), whichresult from the voltage drop of the charge pump output current (I_(cp))across the total resistance is series with the capacitor 1378. When thePLL is out of lock (i.e., fd_en is high), the timing control signal(pull_in) is high and the switch is open (as shown in FIG. 13). When theswitch is open, the total resistance is R=R₀+R₁, which causes themagnitude of the ripple on the VCO tuning signal (V_(tune)) to belarger. The larger ripple on the VCO tuning signal (V_(tune)) translatesto a larger step size. Some time after lock is achieved and the controlsignal (fd_en) goes low, the timing control signal (pull_in) will go lowand cause the switch to close. When the switch is closed, the totalresistance is R=R₀, which causes the magnitude of the ripple on the VCOtuning signal (V_(tune)) to be smaller than it was when the switch wasopen. This causes the step size to go to its regular operatingcondition. In an embodiment, the switch could be implemented as a MOSFETor a pair of complementary MOSFETs to form a “pass gate.”

FIG. 14 depicts a process flow diagram of a method for controlling a VCOin a bang-bang PLL. At block 1490, a VCO frequency is changed by a firststep size upon obtaining frequency lock. At block 1492, the VCOfrequency is changed by a second step size after the VCO frequency hasbeen changed by the first step size, wherein the first step size islarger than the second step size.

Although specific embodiments in accordance with the invention have beendescribed and illustrated, the invention is not limited to the specificforms and arrangements of parts so described and illustrated. Theinvention is limited only by the claims.

1. A method for controlling a voltage controlled oscillator (VCO) in abang-bang phase-locked loop, the method comprising: changing a VCOfrequency by a first step size upon establishing frequency lock;changing the VCO frequency by a second step size some time after the VCOfrequency has been changed by the first step size; wherein the firststep size is larger than the second step size; and limiting the timeduring which the VCO frequency is changed by the first step size.
 2. Themethod of claim 1 wherein said first step size provides a faster VCOfrequency pull-in rate than the second step size.
 3. The method of claim1 including transitioning from the first step size to the second stepsize in response to a control signal that indicates frequency lock. 4.The method of claim 3 wherein the transitioning includes generating adelayed response to the control signal that indicates frequency lock. 5.The method of claim 1 further including programming the first and secondstep sizes.
 6. A system for controlling a voltage controlled oscillator(VCO) in bang-bang phase-locked loop, the system comprising: a step sizecontroller configured to: provide a first VCO control signal to the VCOupon establishing frequency lock, said first VCO control signal causingthe VCO frequency to change by a first step size; provide a second VCOcontrol signal to the VCO some time after the VCO frequency has changedin response to the first VCO control signal, said second VCO controlsignal causing the VCO frequency to change by a second step size,wherein the first step size is larger than the second step size; andlimit the time over which the VCO frequency is changed by the first stepsize.
 7. The system of claim 6 wherein the step size controller isconfigured to transition to providing the second VCO control signal inresponse to a control signal that indicates frequency lock.
 8. A systemfor controlling a voltage controlled oscillator (VCO) in a bang-bangphase-locked loop, the system comprising: timing control logicconfigured to control the timing of changes in VCO frequency step sizein response to a control signal that indicates frequency lock; and stepsize logic in signal communication with the timing control logicconfigured to change the VCO frequency step size from a first step sizeto a second step size in response to a timing control signal from thetiming control logic, wherein the first step size is larger than thesecond step size and wherein the step size logic includes an up/downcounter and a comparator, the comparator being configured to compare acounter value from the counter with a programing input and to output asignal that causes the up/down counter to increment or decrement inresponse to the comparison.
 9. The system of claim 8 wherein the timingcontrol logic includes delay logic for generating the timing controlsignal by delaying the control signal that indicates frequency lock. 10.The system of claim 8 wherein the step size logic includes adigital-to-analog converter for converting digital step size signalsinto an analog step size signal.
 11. The system of claim 8 wherein thestep size logic is configured to output a step size signal to the VCO,which sets the VCO frequency step size.
 12. The system of claim 8wherein the step size logic includes a programming input for receivingstep size information.
 13. A method for controlling a voltage controlledoscillator (VCO) in a bang-bang phase-locked loop, the methodcomprising: changing a VCO frequency by a first step size uponestablishing frequency lock; changing the VCO frequency by a second stepsize some time after the VCO frequency has been changed by the firststep size; wherein the first step size is larger than the second stepsize; and transitioning from changing the VCO frequency by the firststep size to changing the VCO frequency by the second step size throughat least one intermediate step size intermediate between said first andsecond step sizes.
 14. The method of claim 13 wherein said transitioningincludes low pass filtering an analog step size signal.
 15. The methodof claim 13 wherein said transitioning includes changing a counter valueand setting the step size in response to the counter value.
 16. Themethod of claim 13 wherein said transitioning includes changing acounter value up or down in response to a comparison of the countervalue with a programming input.
 17. A system for controlling a voltagecontrolled oscillator (VCO) in a bang-bang phase-locked loop, the systemcomprising: a step size controller configured to: provide a first VCOcontrol signal to the VCO upon establishing frequency lock, said firstVCO control signal causing the VCO frequency to change by a first stepsize; provide a second VCO control signal to the VCO some time after theVCO frequency has changed in response to the first VCO control signal,said second VCO control signal causing the VCO frequency to change by asecond step size, wherein the first step size is larger than the secondstep size; and transition from providing the first VCO control signal toproviding the second VCO control signal by providing at least oneintermediate VCO control signal, said at least one intermediate VCOcontrol signal causing the VCO frequency to change by a step sizeintermediate between said first and second step sizes.
 18. A system farcontrolling a voltage controlled oscillator (VCO) in a bang-bangphase-locked loop, the system comprising: a step size controllerconfigured to: provide a first VCO control signal to the VCO uponestablishing frequency lock, said first VCO control signal causing theVCO frequency to change by a first step size; and provide a second VCOcontrol signal to the VCO some time after the VCO frequency has changedin response to the first VCO control signal, said second VCO controlsignal causing the VCO frequency to change by a second step size,wherein the first step size is larger than the second step size; whereinthe step size controller comprises: timing control logic configured tocontrol the timing of transitioning from the first VCO control signal tothe second VCO control signal in response to a control signal thatindicates frequency lock; and step size logic in signal communicationwith the timing control logic configured to transition from the firstVCO control signal to the second VCO control signal in response to atiming control signal front the timing control logic.